
<%@ page import="weeklyreport.Task" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<title>任务清单</title>
	</head>
	<body>
		<a href="#list-task" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><g:link class="list" controller="issue">问题清单</g:link></li>
				<li><g:link class="create" action="create">新增任务</g:link></li>
			</ul>
		</div>
		<div id="list-task" class="content scaffold-list" role="main">
			<h1>任务清单</h1>
			<g:if test="${flash.message}">
				<div class="message" role="status">${flash.message}</div>
			</g:if>
			<table>
			<thead>
					<tr>
					
						<g:sortableColumn property="issueNumber" title="${message(code: 'task.issueNumber.label', default: '问题编号')}" />
					
						<g:sortableColumn property="groupName" title="${message(code: 'task.groupName.label', default: '组别')}" />
					
						<g:sortableColumn property="itsmNumber" title="${message(code: 'task.itsmNumber.label', default: 'ITSM单号')}" />
					
						<g:sortableColumn property="status" title="${message(code: 'task.status.label', default: '开发状态')}" />
					
						<g:sortableColumn property="planningBegin" title="${message(code: 'task.planningBegin.label', default: '计划开始时间')}" />
						
						<g:sortableColumn property="beginDate" title="${message(code: 'task.beginDate.label', default: '实际开始时间')}" />
					
						<g:sortableColumn property="planningEnd" title="${message(code: 'task.planningEnd.label', default: '计划结束时间')}" />
						
						<g:sortableColumn property="endDate" title="${message(code: 'task.endDate.label', default: '实际结束时间')}" />
					
						<g:sortableColumn property="manDay" title="${message(code: 'task.manDay.label', default: '开发人天')}" />
					
						<g:sortableColumn property="planningManDay" title="${message(code: 'task.planningManDay.label', default: '计划人天')}" />
					
						<g:sortableColumn property="description" title="${message(code: 'task.developer.label', default: '问题描述')}" />
					
					</tr>
				</thead>
				<tbody>
				<g:each in="${taskInstanceList}" status="i" var="taskInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td><g:link action="show" id="${taskInstance.id}">${fieldValue(bean: taskInstance, field: "issueNumber")}</g:link></td>
					
						<td>${fieldValue(bean: taskInstance, field: "groupName")}</td>
					
						<td>${fieldValue(bean: taskInstance, field: "itsmNumber")}</td>
					
						<td>${fieldValue(bean: taskInstance, field: "status")}</td>
					
						<td><g:formatDate format="yyyy/MM/dd" date="${taskInstance?.planningBegin}" /></td>
					
						<td><g:formatDate format="yyyy/MM/dd" date="${taskInstance?.beginDate}" /></td>
					
						<td><g:formatDate format="yyyy/MM/dd" date="${taskInstance?.planningEnd}" /></td>
					
						<td><g:formatDate format="yyyy/MM/dd" date="${taskInstance?.endDate}" /></td>
					
						<td>${fieldValue(bean: taskInstance, field: "manDay")}</td>
					
						<td>${fieldValue(bean: taskInstance, field: "planningManDay")}</td>
					
						<td>${fieldValue(bean: taskInstance, field: "description")}</td>
					
					</tr>
				</g:each>
				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${taskInstanceCount ?: 0}" />
			</div>
		</div>
	</body>
</html>
